package cn.lingyangwl.agile.common.security.constants;

/**
 * 角色数据范围
 * @author shenguangyang
 */
public enum RoleDataScopeEnum {
    ALL_DATA("1", "所有数据权限"),
    CUSTOM_DATA("2", "自定义数据权限"),
    CURRENT_DEPT_DATA("3", "本部门数据权限"),
    CURRENT_AND_CHILD_DEPT_DATA("4", "本部门及以下数据权限"),
    ONLY_MY_DATA("5", "仅本人数据权限");
    private final String key;
    private final String value;

    RoleDataScopeEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public String getKey() {
        return key;
    }

    public String getValue() {
        return value;
    }
}
